# demo10_while_getsum_100.py
# 1 + 2 + 3 + 4 + ... + 100
counter = 1
sum100 = 0
while counter <= 100:
    # print(counter) # 1 2 3 ... 98 99 100
    sum100 += counter  # sum100 = sum100 + counter
    counter += 1
print("sum:", sum100)

